package com.open.center.common.databind.desensitization;

/**
 * 脱敏符
 *
 * @author Riche's
 * @since 2025/5/23
 */
public class Symbol {

    /**
     * '*'脱敏符
     */
    public static final String STAR = "*";

    private Symbol() {

    }

    /**
     * 获取符号
     *
     * @param number 符号个数
     * @param symbol 符号
     */
    public static String getSymbol(int number, String symbol) {
        return String.valueOf(symbol).repeat(Math.max(0, number));
    }

}
